home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
TPFORT18.ARJ
/
FSAMPLE.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1992-03-08
|
850b
|
36 lines
unit Fsample;
{ This unit contains the dummy Pascal routines corresponding to the routines
in FSAMPLE.FOR
}
interface
uses FortLink;
procedure Eval(Fn:extval;
var N:longint;
var X:realarray;
var Value:double);
{ Evaluates a double-valued function with arguments N and an array X of length
N, and returns the answer in Value }
function Cube(var X:double):double;
{ Cubes its argument }
const
Eval_Num = 1; { These numbers are the positions of EVAL and CUBE in }
Cube_Num = 2; { the Fortran call to CALLTP }
implementation
procedure Eval;
begin
CallFort(Eval_Num); { This is a procedure, so it uses CallFort }
end;
function Cube;
begin
FDouble(Cube_Num); { This is a function:double, so it uses FDouble }
end;
end.